<template>
    <div>
        <Login v-if="currentPage === '/Login'" />
        <Home v-else />
    </div>
</template>

<script setup>
import { ref, watch } from 'vue'
import { useRoute } from 'vue-router'
import Home from '@/views/Home.vue'

const route = useRoute()

let currentPage = ref('/Index')
watch(route, (path) => {
    currentPage.value = path.path
})

</script>
<style></style>